#include<bits/stdc++.h>
using namespace std;
const int len=2e5+5;
const int numlen=1e6+5;
int arr[len],state[numlen];
int main() {
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t;
    cin>>t;
    while(t--) {
        int n,ans=0;
        scanf("%d",&n);
        for(int i=1;i<=n;i++) {
            scanf("%d",&arr[i]);
        }
        printf("%d\n",ans);
    }
    return 0;
}
